package org.yunmai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.yunmai.entity.SysPermission;
import org.yunmai.mapper.SysPermissionMapper;
import org.yunmai.service.SysPermissionService;
import org.yunmai.vo.SysPermissionVO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_permission】的数据库操作Service实现
* @createDate 2025-06-03 19:47:51
*/
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission>
    implements SysPermissionService{

    @Override
    public List<SysPermissionVO> getPermissionListByRoleId(int pageNum, int pageSize, String keyword) {
        int offset = (pageNum - 1) * pageSize;
        return baseMapper.selectPermissionPage(offset, pageSize, keyword);
    }
}




